﻿namespace Sidvall.LogManager.Workflow
{
    public class LogCleanupExecutionContext
    {
        public LogResultCollection LogResults { get; set; }

        public override string ToString()
        {
            if (this.LogResults == null)
                return string.Empty;

            var count = 0;
            foreach (var item in this.LogResults)
                count += item.DeletedCount;
            return "Deleted Log Items: " + count.ToString();
        }
    }
}
